using ZhaoXi.MSACommerce.SharedKenel.Domain;

namespace Zhaoxi.MSACommerce.CategoryService.Core.Entities;

public class Category :BaseAuditEntity, IAggregateRoot
{
    public string Name { get; set; } = null !;
    /// <summary>
    /// 父节点ID
    /// </summary>
    public long ParentId { get; set; }
    /// <summary>
    /// 是否顶级类
    /// </summary>
    public bool IsParent { get; set; }
    /// <summary>
    /// 排序
    /// </summary>
    public int Sort { get; set; }
    public ICollection<CategoryBrands> Brands { get; set; }
}